home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn Microsoft Visual Basic 6.0 Now
/
Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO
/
media
/
chap03
/
b03d015.cc2
< prev
Wrap
Text File
|
1998-06-07
|
1KB
|
30 lines
0, Your assignment in Lab 3 is to create a
3, program that uses menus and a
5, CommonDialog control to open Windows metafiles on
8, your computer's hard disk. Metafiles are
10, graphic files that are designed to be
12, resized in a window, the perfect format
15, for the Visual Basic ImageBox control.
18, Your solution should feature a common
20, dialog object, an image object, and a File
25, menu with Open, Close, and Exit commands.
30, When you run your program, it should
33, start predictably and display an Open
35, dialog box when you click the Open command
39, on the File menu. You should be able to
43, browse for a metafile in the Open dialog
45, box. And when you find the one you want
47, to open, you should be able to click the
49, Open button. After a moment, the
52, metafile you select will appear on your form.
56, Then you should be able to click the
56, File menu again and use the Close command
59, to make the metafile go away. Notice that
63, an access key and a shortcut key is
66, listed for the Close command. You should be
68, able to use the keyboard to access the
69, command items, too. When you click the
71, Close command, the image goes away.
76, Finally, you should be able to close the
78, application with the Exit command.
81, END